const express = require("express");
const path = require("path");
let adminRouter = require("./routers/adminRouter")
let indexRouter = require("./routers/indexRouter")
const bodyParser = require("body-parser")
const static = express.static;
let app = express();

app.set("views",path.join(__dirname,"./views"))
app.set("view engin","ejs");
app.use(static("./static"))
app.use(bodyParser.urlencoded({
    extended:false
}))
app.use("/admin",adminRouter);
app.use("/index",indexRouter);


app.listen(8989);